<%@page import="CustomClassFile.yueli.SalarySearch"%>
<%@page import="java.util.Map"%>
<%@page import="com.alibaba.fastjson.JSON"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="weaver.general.Util"%>
<%@ page import="com.weaver.formmodel.mobile.manager.MobileUserInit"%>
<%@ page import="weaver.hrm.User"%>
<%
String type=request.getParameter("type");
String date=request.getParameter("date");
int userid=Util.getIntValue(request.getParameter("userid"));
/*在移动端这样获取当前用户*/
User user = MobileUserInit.getUser(request, response);
if(userid==-1){
	userid=	user.getUID();
}

int pageNo = Util.getIntValue(request.getParameter("pageNo"));
int pageSize = Util.getIntValue(request.getParameter("pageSize"));
String searchKey = Util.null2String(request.getParameter("searchKey"));

if("1".equals(type)){
	out.print(SalarySearch.SP_PayAll_fri(String.valueOf(userid),date));
}else if("2".equals(type)){
	out.print(SalarySearch.getType2(String.valueOf(userid),date));
}else if("3".equals(type)){
	out.print(SalarySearch.SP_PayAll_sec(String.valueOf(userid),date));
}else if("t1".equals(type)){
	out.print(SalarySearch.SP_PayAll_Tj1(String.valueOf(userid),date));
}else if("t2".equals(type)){
	out.print(SalarySearch.SP_PayAll_Tj2(String.valueOf(userid),date));
}else if("t3".equals(type)){
	out.print(SalarySearch.SP_PayAll_Tj3(String.valueOf(userid),date));
}else if("t4".equals(type)){
	out.print(SalarySearch.SP_PayAll_Tj4(String.valueOf(userid),date));
}else if("t5".equals(type)){
	out.print(SalarySearch.SP_PayAll_Tj5(String.valueOf(userid),date));
}else if("t6".equals(type)){
	out.print(SalarySearch.SP_PayAll_Tj6(String.valueOf(userid),date));
}else if("t7".equals(type)){
	out.print(SalarySearch.SP_PayAll_Tj7(String.valueOf(userid),date));
}else if("t8".equals(type)){
	out.print(SalarySearch.SP_PayAll_Tj8(String.valueOf(userid),date));
}else if("t9".equals(type)){
	out.print(SalarySearch.SP_PayAll_Tj9(String.valueOf(userid),date));
}else{
	Map<String,Object> map=SalarySearch.getSalary(String.valueOf(userid), date);
	out.print(JSON.toJSONString(map));
}

%>